
import { reactive,readonly } from "vue";
import { getMeun,getAvater } from "../api/getHomeInfo"
const htmlInfo = reactive({
    Nav:null,
    mailto:null,
    recrod:null,
    icon:null
});


export async function gethomeInfo(){
   
    const result = await getMeun();
    htmlInfo.Nav = result.data.Nav;
    htmlInfo.mailto = result.data.mailto;
    htmlInfo.recrod = result.data.recrod;
    htmlInfo.icon = result.data.icon;

}

export async function getAvaterInfo(){
   
    const result = await getAvater();
    htmlInfo.descript = result.data.descript;
    htmlInfo.name = result.data.name;
    htmlInfo.img = result.data.img

}

 export const Info = readonly(htmlInfo); 
